#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.basic.security.smscode;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 短信验证码发送工具类
 * @author wenxiaopeng
 * @date 2020/4/15 19:35
 *
 * <pre>
 *              ${copyright}
 *      Copyright (c) 2019. All Rights Reserved.
 * </pre>
 */
@Slf4j
@Component
public class SmsCodeSender {

    /**
     * 模拟发送手机验证码，此处发回浏览器，实际情况根据短信服务商做调整
     *
     * @param mobile 手机号
     * @param code 验证码
     */
    public void sendSmsCode(String mobile, String code) {
        log.info(String.format("模拟向手机号【%s】发送验证码【%s】", mobile, code));
    }

}
